<template>
	<view class="container container26584">
		<view class="flex flex-wrap diygw-col-24 flex-direction-column flex-clz"> </view>
		<view class="flex diygw-col-24 swiper-clz">
			<swiper class="swiper swiper-indicator_rect_radius" @change="changeSwiper" previous-margin="50rpx" next-margin="50rpx" indicator-color="rgba(51, 51, 51, 0.39)" indicator-active-color="#fff" indicator-dots="true" autoplay interval="3000" circular="true" style="height: 300rpx">
				<swiper-item class="diygw-swiper-item">
					<view class="diygw-swiper-item-wrap" :class="swiperIndex != 0 ? 'swiper-scale' : ''">
						<image src="https://demo.kuqixiu.com/tuniao/static/lgSmartphones.png" class="diygw-swiper-image"></image>
					</view>
				</swiper-item>
				<swiper-item class="diygw-swiper-item">
					<view class="diygw-swiper-item-wrap" :class="swiperIndex != 1 ? 'swiper-scale' : ''">
						<image src="https://demo.kuqixiu.com/tuniao/static/Smartphone.jpg" class="diygw-swiper-image"></image>
					</view>
				</swiper-item>
				<swiper-item class="diygw-swiper-item">
					<view class="diygw-swiper-item-wrap" :class="swiperIndex != 2 ? 'swiper-scale' : ''">
						<image src="https://demo.kuqixiu.com/tuniao/static/hu-huansha-9Q-h--O993g-unsplash.jpg" class="diygw-swiper-image"></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<view class="flex diygw-col-24 grid-clz">
			<view class="diygw-grid col-4">
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_bj.png"></image>
						</view>
						<view class="diygw-grid-title"> 原型设计 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_fz.png"></image>
						</view>
						<view class="diygw-grid-title"> UI设计 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_dj.png"></image>
						</view>
						<view class="diygw-grid-title"> 整套开发 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_rm.png"></image>
						</view>
						<view class="diygw-grid-title"> 前端开发 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_ht.png"></image>
						</view>
						<view class="diygw-grid-title"> IM开发 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_pl.png"></image>
						</view>
						<view class="diygw-grid-title"> 消息推送 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_rzyh.png"></image>
						</view>
						<view class="diygw-grid-title"> 名片设计 </view>
					</view>
				</view>
				<view class="diygw-grid-item">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius">
							<image mode="aspectFit" class="diygw-avatar-img radius" src="https://demo.kuqixiu.com/tuniao/static/icon1_xsqg.png"></image>
						</view>
						<view class="diygw-grid-title"> 其他业务 </view>
					</view>
				</view>
			</view>
		</view>
		<view class="flex flex-wrap diygw-col-24 justify-center items-center flex1-clz">
			<text class="flex icon diygw-col-0 icon-clz diy-icon-star"></text>
			<view class="diygw-col-0 text-clz"> 项 / 目 / 案 / 例 </view>
			<text class="flex icon1 diygw-col-0 icon1-clz diy-icon-star"></text>
		</view>
		<view class="flex flex-wrap diygw-col-24 flex-direction-column justify-end flex2-clz">
			<view class="diygw-col-24 text1-clz"> 图鸟圈子免费开商用模板 </view>
		</view>
		<view class="flex flex-wrap diygw-col-24 flex-direction-column justify-end flex3-clz">
			<view class="diygw-col-24 text2-clz"> 图鸟纸质红包封面设计 </view>
		</view>
		<view class="flex flex-wrap diygw-col-24 flex-direction-column justify-end flex4-clz">
			<view class="diygw-col-24 text3-clz"> 创意加载动画 </view>
		</view>
		<view class="flex diygw-col-24 diygw-bottom bar-clz">
			<view class="diygw-grid diygw-actions">
				<button @tap="navigateTo" data-type="page" data-url="/pages/index" class="diygw-action">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius diy-icon-home" style="font-size: 44rpx"> </view>
						<view class="diygw-grid-title"> 首页 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/product" class="diygw-action">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius diy-icon-goods" style="font-size: 44rpx"> </view>
						<view class="diygw-grid-title"> 产品 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/case" class="diygw-action addon" style="color: #001ffe !important">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius diy-icon-discover" style="font-size: 44rpx; color: #001ffe"> </view>
						<view class="diygw-grid-title"> 案例 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/news" class="diygw-action">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius diy-icon-newshot" style="font-size: 44rpx"> </view>
						<view class="diygw-grid-title"> 资讯 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/me" class="diygw-action">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar radius diy-icon-emoji" style="font-size: 44rpx"> </view>
						<view class="diygw-grid-title"> 我的 </view>
					</view>
				</button>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				//页面传参
				globalOption: {},
				//自定义全局变量
				globalData: {},
				swiperIndex: 0
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {},
			changeSwiper(evt) {
				let swiperIndex = evt.detail.current;
				this.setData({ swiperIndex });
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex-clz {
		background-size: cover;
		background-image: url(https://demo.kuqixiu.com/tuniao/static/bless-top.jpg);
		background-position: bottom center;
		height: 400rpx;
	}
	.swiper-clz {
		margin-left: 0rpx;
		width: calc(100% - 0rpx - 0rpx) !important;
		margin-top: -240rpx;
		margin-bottom: 10rpx;
		margin-right: 0rpx;
	}
	.swiper-scale {
		transform: scaleY(0.9);
		margin: 0 20rpx;
	}
	.flex1-clz {
		padding-top: 30rpx;
		color: #3646ff;
		padding-left: 10rpx;
		padding-bottom: 30rpx;
		padding-right: 10rpx;
	}
	.icon {
		font-size: 48rpx;
	}
	.text-clz {
		margin-left: 10rpx;
		font-weight: bold;
		font-size: 40rpx !important;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon1 {
		font-size: 48rpx;
	}
	.flex2-clz {
		border-bottom-left-radius: 12rpx;
		background-size: cover;
		border-top-right-radius: 12rpx;
		background-position: bottom center;
		margin-right: 20rpx;
		margin-left: 20rpx;
		box-shadow: 4rpx 6rpx 12rpx 2px rgba(134, 188, 255, 0.26);
		overflow: hidden;
		width: calc(100% - 20rpx - 20rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		background-image: url(https://demo.kuqixiu.com/tuniao/static/0.png);
		margin-bottom: 20rpx;
		height: 360rpx;
	}
	.text1-clz {
		padding-top: 20rpx;
		color: #fefefe;
		font-weight: bold;
		padding-left: 20rpx;
		font-size: 36rpx !important;
		padding-bottom: 20rpx;
		padding-right: 20rpx;
	}
	.flex3-clz {
		border-bottom-left-radius: 12rpx;
		background-size: cover;
		border-top-right-radius: 12rpx;
		background-position: bottom center;
		margin-right: 20rpx;
		margin-left: 20rpx;
		box-shadow: 4rpx 6rpx 12rpx 2px rgba(134, 188, 255, 0.26);
		overflow: hidden;
		width: calc(100% - 20rpx - 20rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		background-image: url(https://demo.kuqixiu.com/tuniao/static/hb.jpg);
		margin-bottom: 20rpx;
		height: 360rpx;
	}
	.text2-clz {
		padding-top: 20rpx;
		color: #fefefe;
		font-weight: bold;
		padding-left: 20rpx;
		font-size: 36rpx !important;
		padding-bottom: 20rpx;
		padding-right: 20rpx;
	}
	.flex4-clz {
		border-bottom-left-radius: 12rpx;
		background-size: cover;
		border-top-right-radius: 12rpx;
		background-position: bottom center;
		margin-right: 20rpx;
		margin-left: 20rpx;
		box-shadow: 4rpx 6rpx 12rpx 2px rgba(134, 188, 255, 0.26);
		overflow: hidden;
		width: calc(100% - 20rpx - 20rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-bottom-right-radius: 12rpx;
		background-image: url(https://demo.kuqixiu.com/tuniao/static/gif1010.gif);
		margin-bottom: 20rpx;
		height: 360rpx;
	}
	.text3-clz {
		padding-top: 20rpx;
		color: #fefefe;
		font-weight: bold;
		padding-left: 20rpx;
		font-size: 36rpx !important;
		padding-bottom: 20rpx;
		padding-right: 20rpx;
	}
	.container26584 {
		padding-left: 0px;
		padding-right: 0px;
	}
	.container26584 {
		padding-bottom: 80px;
	}
</style>
